package com.b.object;

public class TestThis {
    public static void main(String[] args) {
        Teacher teacher=new Teacher("张三",20,"男");
        System.out.println(teacher.name+"\t"+teacher.age+"\t"+teacher.sex+"\t"+teacher.salary);
    }
}
class Teacher{
    String name;
    int age;
    String sex;
    double salary;

    public Teacher() {
    }
    public Teacher(String name,String sex) {
        this.name=name;
        this.sex=sex;
    }
    public Teacher(String name,int age,String sex) {
        this(name,sex);
        this.age=age;
    }
}
